<template>
  <div class="back">
    <div class="back_Box" @scroll="scroll">
      <p style="color: red" v-for="item in 99" :key="item">{{ item }}</p>
    </div>
    <div class="ding" v-show="isShow" @click="ding"></div>
  </div>
</template>

<script>
export default {
  props: ["isShow"],
  name: "",
  components: {},
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {
    scroll(e) {
      this.$emit("scroll", e);
    },
    ding() {
      this.$emit("ding");
    },
  },
};
</script>
<style scoped lang="scss">
.back {
  .back_Box {
    overflow-y: scroll;
    width: 50%;
    background: blue;
    color: #fff;
    height: 1000px;
  }
  .ding {
    width: 50px;
    height: 120px;
    background: red;
    position: fixed;
    right: 50%;
    top: 400px;
  }
}
</style>
